file_name = '..\\txt\\guest.txt'
# user_name = input('Please enter your name: ')
while True:
    user_name = input('Please enter your name: ')
    if user_name == 'q':
        break
    print('Welcome ' + user_name)
    with open(file_name, 'a') as file_object:
        file_object.write(user_name + '\n')
